package java.util
{
	import com.lizardtech.djvu.CachedInputStream;
	
	public class Enumerator implements Enumeration
	{
		
		private var _position:int;
		private var _elements:Array;
	
		public function Enumerator(elements:Array) {
			super();
			_elements = elements;
		}

		public function setElements(elements:Array):void {
			_elements = elements;
		}
		
		public function hasMoreElements():Boolean {
			if(_position < (_elements.length - 1)) { return true; }
			else { return false; } 
		}

		public function nextElement():Object {
			_position++;
			return _elements[_position];
		}
		
	}
}